package com.mao.service.warehouse;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mao.action.jsonvo.warehouse.JsonVoWareHouse;
import com.mao.model.warehouse.WareHouse;
import com.mao.service.impl.warehouse.WareHouseCondition;

@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public interface IWareHouseService<T>{
	public List<WareHouse> getAllWareHouse();

	public WareHouse saveWareHouse(WareHouse w);

	public WareHouse updateWareHouse(WareHouse w);

	public WareHouse getWareHouseById(long id);
	
	public List<JsonVoWareHouse> getWarsByWarClass(WareHouseCondition wareHouseCondition, long warClassId,long storeid,Integer page,Integer rows);
	
	public int getWarsByWarClassgCount(WareHouseCondition wareHouseCondition, long warClassId,long storeid);
	
	public String valDelWH(long id);
}
